package com.usian.article.controller;

import com.usian.api.article.ApArticleConfigControllerApi;
import com.usian.api.article.ApArticleControllerApi;
import com.usian.article.service.ApArticleConfigService;
import com.usian.article.service.ApArticleService;
import com.usian.model.article.pojos.ApArticle;
import com.usian.model.article.pojos.ApArticleConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @Auther:ASS
 * @Date:2023/2/22 11:18
 */
@RestController
@RequestMapping("/api/v1/articleConfig")
public class ApArticleConfigController implements ApArticleConfigControllerApi {

    @Autowired
    private ApArticleConfigService apArticlconfigeService;



    /*
    * admin调用保存文章配置表
    *
    * */
    @Override
    @RequestMapping("/saveApArticleconfig")
    public ApArticleConfig saveApArticleConfig(@RequestBody ApArticleConfig apArticleConfig) {
        return apArticlconfigeService.saveApArticle(apArticleConfig);
    }
}
